<?php

$provider = key($data);
$crops = $data[$provider];

$message = $provider . ':' . "\n";

foreach ($crops as $crop) {
    $message .= $crop['variety']
            . ' = '
            . $crop['price']
            . ' as of '
            . Yii::app()->dateFormatter->format('MMM d', $crop['date'])
            . "\n";
};

echo $message;
?> 